import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import pinia from "./store";
import Particles from "@tsparticles/vue3";
import { loadSlim } from "@tsparticles/slim";
import "normalize.css";
import "@/assets/css/common.css";
import "./permission";
import piniaPluginPersist from "pinia-plugin-persist";
//持久化
pinia.use(piniaPluginPersist);

createApp(App)
  .use(router)
  .use(pinia)
  .use(Particles, {
    init: async (engine) => {
      await loadSlim(engine);
    },
  })
  .mount("#app");
